package com.zxj.system.domain.question.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author zxj2022
 * @since 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_question")
@Schema(name="Question", description="Question对象实体")
public class Question extends BaseEntity implements Serializable  {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "题目id")
    @TableId(value = "question_id", type = IdType.ASSIGN_ID)
    private Long questionId;

    @Schema(description = "题目标题")
    private String title;

    @Schema(description = "题目难度 1:简单 2：中等 3：困难")
    private Integer difficulty;

    @Schema(description = "时间限制")
    private Integer timeLimit;

    @Schema(description = "空间限制")
    private Integer spaceLimit;

    @Schema(description = "题目内容")
    private String content;

    @Schema(description = "题目用例")
    private String questionCase;

    @Schema(description = "默认代码块")
    private String defaultCode;

    @Schema(description = "main函数")
    private String mainFuc;


}
